package com.example.powernodemall.mapper;

import com.example.powernodemall.model.LoginSysUser;
import org.apache.ibatis.annotations.Mapper;

import java.util.Set;

@Mapper
public interface SysUserMapper {
    int deleteByPrimaryKey(Long userId);

    int insert(LoginSysUser record);

    int insertSelective(LoginSysUser record);

    LoginSysUser selectByPrimaryKey(Long userId);

    int updateByPrimaryKeySelective(LoginSysUser record);

    int updateByPrimaryKey(LoginSysUser record);

    LoginSysUser selectByUsername(String username);

    Set<String> selectPermissionsById(Long userId);
}